package com.jdzy.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdzy.model.student.pojos.SignRecordPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SignRecordPlanMapper extends BaseMapper<SignRecordPlan> {
    boolean existsByStuIdAndPlanIdAndSignDate(@Param("stuId")String stuId,@Param("planId")Long planId, Date date);

    void save(SignRecordPlan signRecordPlan);


    List<Date> findSignDatesByStuId(@Param("stuId")String stuId);
}
